package com.zfzs.post.modules.goods.service.impl.mybatis;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zfzs.post.model.vo.GoodsOrderVO;
import com.zfzs.post.modules.goods.domain.GoodOrder;
import com.zfzs.post.modules.goods.service.dto.GoodOrderQueryCriteria;
import com.zfzs.post.modules.goods.service.mapper.mybatis.IGoodsOrderMapper;
import com.zfzs.post.modules.goods.service.mybatis.IGoodsOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 商品订单
 *
 * @author ck
 * @date 2019-10-18
 */
@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class IGoodsOrderServiceImpl extends ServiceImpl<IGoodsOrderMapper, GoodOrder> implements IGoodsOrderService {

    @Autowired
    private IGoodsOrderMapper iGoodsOrderMapper;

    @Override
    public int getCountGoodOrderPage(GoodOrderQueryCriteria criteria) {

        return iGoodsOrderMapper.getCountGoodOrderPage(criteria);
    }
    @Override
    public List<Map<String,Object>> getListGoodOrderPage(GoodOrderQueryCriteria criteria, Integer offset, Integer size){
        return iGoodsOrderMapper.getListGoodOrderPage(criteria,offset,size);
    }

}